package com.jsnkj.basic.config

import android.os.Environment

object SpConfig {
    const val UID = "uid"

    //是否是第一次启动，用于判断版本更新
    var isSplashActivity = true

    //启动页开屏广告时间
    const val STREAM_OPEN_AD_TIME = "stream_open_ad_time"

    //广告数据
    const val AD_BEAN = "AdvertisementBean"

    //网络请求异常
    const val HTTP_ERROR_CODE = 420
    const val HTTP_ERROR_CODE1 = 401
    const val HTTP_ERROR_CODE2 = 430
    var isError = false

    //第一次进入APP
    const val IS_FIRST_INIT = "isFirstInit"

    //首页插屏广告 时间间隔设置 单位（秒）
    const val OPEN_MAIN_AD_TIME: Long = 30

    //任何广告展示的时间间隔必须大于3秒
    const val AD_TIME: Long = 3

    //主界面插屏广告时间
    const val MAIN_OPEN_AD_TIME = "main_open_ad_time"

    const val BANNER_AD_TIME = "main_banner_ad_time88"

    //开屏广告 时间间隔设置 单位（秒）
    const val OPEN_AD_TIME: Int = 30

    //Banner广告 定时器设置 单位（秒）限制：至少在5秒以上
    const val BANNER_TIME: Long = 6000

    //用户协议 agreement
    var AGREEMENT_URL: String = "https://wz.baiyiadsense.com/agreement"

    //隐私政策
    var PRIVACY_POLICY_URL: String = "https://wz.baiyiadsense.com/privicy"


    //红包页面循环发送消息 时间间隔
    const val RED_PACKET_TIME: Long = 3000


    //请求域名 测试服
//    const val HTTP_URL: String = "http://wz.baiyiadsense.com"
    //正式服
//    const val HTTP_URL: String = "http://wz.huangxiaoqi.com"
    const val HTTP_URL: String = "http://adbase.946service.cn"

    //系统配置数据
    const val APP_SETTING_ENTITY = "APP_SETTING_ENTITY"

    //广告配置数据
    const val AD_SETTING_ENTITY = "AD_SETTING_ENTITY"

    //红包名称
    const val RED_PACKET_NAME = "RED_PACKET_NAME"

    //红包数量
    const val RED_PACKET_NUMBER = "RED_PACKET_NUMBER"

    //图片名称
    const val IMG_SAVE_NAME = "dhfj"

    //会员信息
    const val USER_LOGIN_ENTITY = "USER_LOGIN_ENTITY"


    //金币换算比例
    const val goldCoinConversion = 10000.0F

    //ecpm换算比例
    const val ecpmCoinConversion = 1000.0F * 100.0F


    //是否登录
    const val IS_LOGIN = "app_user_login"

    //我的资料
    const val APP_MY_INFOMATION = "app_my_infomation"

    //是否锁屏广告，false： 锁屏后则不打开启动页  true:打开启动页
    const val APP_LOCK_SCREEN = "app_lock_screen"


    /**
     * 下载路径
     */
    var DOWN_APK_PATH = Environment.getExternalStorageDirectory().absolutePath + "/down_apk/"
}